"""
Created by 饼干 on 2019/10/31 15:04
"""
import threading

from werkzeug.local import LocalStack
__author__ = '饼干'

s = LocalStack()
s.push(1)
print("this is main thread" + str(s.top))


def work():
    print("this is new thread" + str(s.top))
    s.push(2)
    print("this is new thread" + str(s.top))


new_t = threading.Thread(target=work,name="qiyue")
new_t.start()
print("this is main thread" + str(s.top))


